<?php
class Config {
	
	public static function get($key) {
		$conf = array(
				"production" => array(
						"adr" => "mysql51-106.perso",
						"db"  => "sportincp",
						"usr" => "sportincp",
						"psw" => "partner1"
				),
				"staging" => array(
						"adr" => "mysql51-107.perso",
						"db"  => "sportincp_test",
						"usr" => "sportincp_test",
						"psw" => "partner1"
				),
				"testing" => array(
						"adr" => "mysql51-107.perso",
						"db"  => "sportincp_rec",
						"usr" => "sportincp_rec",
						"psw" => "partner1"
				),
				"development" => array(
						"adr" => "mysql51-107.perso",
						"db"  => "sportincp_dev",
						"usr" => "sportincp_dev",
						"psw" => "partner1"
				)
		);
		
		return $conf[APPLICATION_ENV][$key];
	}
}